home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_10 / jagger / printf2.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-25  |  481 b   |  28 lines

  1. /* Listing 8, printf.c, version 2 */
  2. #include <stdarg.h>
  3. #include <stdio.h>
  4. #include <string.h>
  5.  
  6. #include "check.h"    /* Listing 5 */
  7. #include "printf.h"    /* Listing 7 */
  8.  
  9. static struct Func func =
  10.    {
  11.    "int",
  12.    "printf",
  13.    "(const char format[], ...)",
  14.    NULL,
  15.    NULL
  16.    };
  17.  
  18. /* == DB_printf() from Listing 4 == */
  19.  
  20. PrintfLike * Ptr_printf(const char file[], 
  21.                         const char line[])
  22.    {
  23.    func.file = file;
  24.    func.line = line;
  25.    return DB_printf;
  26.    }
  27.  
  28.